package com.it.travel.controller;

import com.it.travel.service.CategoryService;
import com.it.travel.vo.ResultInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("category")
public class CategoryController {

    @Autowired
    private CategoryService categoryService;

    /**
     * 旅游产品分类查询功能实现
     * @return
     */
    @RequestMapping("findAllCategory")
    @ResponseBody
    public ResultInfo findAllCategory() {
        return categoryService.findAllCategory();
    }
}
